DecimalFormat getPositiveSuffix() method in Java
The getPositiveSuffix() method of the DecimalFormat class in Java is used to get the positive suffix value of this DecimalFormat instance....
read more
DecimalFormat setRoundingMode() method in Java
The setRoundingMode() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the RoundingMode to be used with this DecimalFormat instance to round-off the decimal digits....
read more
NumberFormat getCurrency() method in Java with Examples
The getCurrency() method is a built-in method of the java.text.NumberFormat returns the currency which is used while formatting currency values by this currency. It can be null if there is no valid currency to be determined or if no currency has been set previously....
read more
NumberFormat setMinimumIntegerDigits() method in Java with Examples
The setMinimumIntegerDigits() method is a built-in method of the java.text.NumberFormat which sets the minimum number of digits allowed in the integer portion of a number. If the new value for minimumIntegerDigits is less than the current value of maximumIntegerDigits, then maximumIntegerDigits will also be set to the new value....
read more
NumberFormat hashCode() method in Java with Examples
The hashCode() method is a built-in method of the java.text.NumberFormat returns a hash-code value for this given object of instance....
read more
FieldPosition getEndIndex() method in Java with Example
The getEndIndex() method of java.text.FieldPosition class is used to get the index of the character which is preceded by the last character in FieldPosition object....
read more
DecimalFormatSymbols getExponentSeparator() method in Java with Examples
The getExponentSeparator() method of java.text.DecimalFormatSymbols class in Java is used to get the String that is used to represent exponent separator for the Locale of this DecimalFormatSymbols. This method returns the String for exponent separator of that Locale....
read more
BreakIterator following() method in Java with Examples
The following() method of java.text.BreakIterator class is used to return the index of the first boundary which is present after the specified offset in the line of text. it provides the offset of the first character of the next boundary which follows the passed offset’s boundary. Syntax:...
read more
NumberFormat setMaximumIntegerDigits() method in Java with Examples
The setMaximumIntegerDigits() method is a built-in method of the java.text.NumberFormat which sets the maximum number of digits allowed in the integer portion of a number.If the new value for maximumIntegerDigits is less than the current value of minimumIntegerDigits, then minimumIntegerDigits will also be set to the new value....
read more
DecimalFormat getMinimumFractionDigits() method in Java
The getMinimumFractionDigits() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to get the minimum number of digits allowed in the fractional or the decimal part of a Number....
read more
RuleBasedCollator getRules() method in Java with Example
The getRules() method of java.text.RuleBasedCollator class is used to get the rule which is used during the initialization of rule based collator object....
read more
DateFormatSymbols setMonths() Method in Java with Examples
The setMonths(String[] newMonth) Method of DateFormatSymbols class in Java is used to set the names of the months of the calendar in string format into some different strings. For eg., “January” can be changed to “FEBRUARY”, “JUNE” can be changed to “GEEK” etc....
read more